import AsyncStorage from '@react-native-async-storage/async-storage'

const KET_BOARDING_PASS = "boarding-pass"

/**
 * 保存登录态
 * @param data 
 */
export function saveBoarding(data:string) {
    AsyncStorage.setItem(KET_BOARDING_PASS,data)
}
/**
 * 获取登录态
 * @returns 
 */
export async function getBoarding () {
    return await AsyncStorage.getItem(KET_BOARDING_PASS)
}